<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
    <script>
      navigator.serviceWorker.getRegistrations().then(function (regs) {
        for (let reg of regs) {
          console.log(reg,'un')
          reg.unregister();

        }
      });

      navigator.serviceWorker
        .register("/sw2.js")
        .then((reg) => console.log("SW registered!", reg))
        .catch((err) => console.log("Boo!", err));

      setTimeout(() => {
        const img = new Image();
        img.src = "/static/svg1.svg";
        document.body.appendChild(img);
      }, 3000);
    </script>
  </body>
</html>
